﻿<%@ Page Language="C#" MasterPageFile="~/Masterpage/WebSite.master" AutoEventWireup="true"
    CodeFile="publicdishlist.aspx.cs" Inherits="publicdishlist" Title="SundayWish - 经典食谱" %>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="public_left">
        <div style="clear: both;">
        </div>
        <div class="page_head">
            <div>
                <span class="page_head_span">SundayWish一共收藏<span id="dishnumber" runat="server" style="color: #f00"></span>个经典食谱
            </div>
        </div>
        <div class="page_searchbar">
        </div>
        <div class="page_content">
            <br />
            <asp:GridView ID="gvPlanlist" runat="server" PageSize="8" AllowPaging="true" AutoGenerateColumns="False"
                ShowHeader="False" BorderStyle="None" BorderWidth="0px" GridLines="None" Width="100%"
                OnRowCommand="GridView1_RowCommand">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <div class="dishitem">
                                <div style="float: left; width: 30%">
                                    <div class="box">
                                        <asp:Image ID="img" runat="server" ImageUrl='<%# "~/image/s"+Eval("DishImage") %>' />
                                    </div>
                                </div>
                                <div class="dishcontent">
                                    <div class="dishname">
                                        <%# Eval("DishName")%></div>
                                    <table style="margin-top: 10px">
                                        <tr>
                                            <td height="25px">
                                                分类：<%# Eval("DishKind")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="25px">
                                                原材料：<%# Eval("DishMaterial")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="25px">
                                                使用次数：<%# Eval("DishCount")%>次
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div style="float: left; width: 30%">
                                    <table style="margin-top: 40px">
                                        <tr>
                                            <td style="width: 150px">
                                                <asp:Button ID="btnDetail" runat="server" Text="查看详情" CommandName="btnDetail" CommandArgument='<%#Eval("DishId") %>'   CssClass="buttona"/>
                                                <br />
                                                <br />
                                                <asp:Button ID="btnAddToPrivate" runat="server" Text="加入个人食谱" CommandName="btnAddToPrivate"  CssClass="buttona"
                                                    CommandArgument='<%#Eval("DishId") %>' />
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
    </div>
</asp:Content>
